package com.example.demo.controller;/**
 * @author Daog
 * @create 2020 -11 -2020-11-02 20:07
 * @description 功能描述
 */

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: demo_boot
 *
 * @description:
 *
 * @author: Dong
 *
 * @create: 2020-11-02 20:07
 **/
@RestController
public class HelloConfigController {

    @Value("${offcn_ip}")
    private String offcn_ip;

    @Value("${offcn_port}")
    private String offcn_port;

    @GetMapping("/getvalue")
    public String getValue() {
        return "ip:"+offcn_ip+" port:"+offcn_port;
    }

}
